class ExtendedUsers < ActiveRecord::Migration
  def self.up
    change_table :users do |t|
      t.boolean :admin, :default => true, :null => false
      t.boolean :moderator, :default => true, :null => false
      t.boolean :banned, :default => true, :null => false
      t.integer :edit_count, :default => 0
      t.integer :post_count, :default => 0
    end
  end

  def self.down
    change_table :users do |t|
      t.remove :admin
      t.remove :moderator
      t.remove :banned
      t.remove :edit_count
      t.remove :post_count
    end
  end
end
